package demoMod.stsconsole.powers;

import demoMod.stsconsole.dungeons.AbstractDungeon;
import demoMod.stsconsole.interfaces.TurnStartSubscriber;

public class BerserkPower extends AbstractPower implements TurnStartSubscriber {
    public static final String ID = "BerserkPower";

    public BerserkPower(int amount) {
        super(ID, AbstractDungeon.player, amount);
    }

    @Override
    public String getUpdatedDescriptions() {
        return String.format(this.description, this.amount[0]);
    }

    @Override
    public void atTurnStart(boolean isPlayer) {
        if (isPlayer) {
            AbstractDungeon.player.currEnergy += this.amount[0];
        }
    }
}
